<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/templates/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sysApproveLevelRateVehicleTypeBean.id}"/>
		<f:event type="preRenderView" listener="#{sysApproveLevelRateVehicleTypeBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Sys Approve Level Rate Vehicle Type"/>

	<ui:define name="header">
		Sys Approve Level Rate Vehicle Type
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty sysApproveLevelRateVehicleTypeBean.id}">
				Edit existing Sys Approve Level Rate Vehicle Type
			</c:when>
			<c:otherwise>
				Create a new Sys Approve Level Rate Vehicle Type
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="sysApproveLevelRateVehicleTypeBeanSysApproveLevelRateVehicleTypeSysApproveLevel" value="Sys Approve Level:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysApproveLevelBean.converter}" id="sysApproveLevelRateVehicleTypeBeanSysApproveLevelRateVehicleTypeSysApproveLevel" value="#{sysApproveLevelRateVehicleTypeBean.sysApproveLevelRateVehicleType.sysApproveLevel}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysApproveLevelBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sysApproveLevelRateVehicleTypeBeanSysApproveLevelRateVehicleTypeSysApproveLevel" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysApproveLevelRateVehicleTypeBeanSysApproveLevelRateVehicleTypeSysVehicleType01" value="Sys Vehicle Type 01:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysVehicleType01Bean.converter}" id="sysApproveLevelRateVehicleTypeBeanSysApproveLevelRateVehicleTypeSysVehicleType01" value="#{sysApproveLevelRateVehicleTypeBean.sysApproveLevelRateVehicleType.sysVehicleType01}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysVehicleType01Bean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sysApproveLevelRateVehicleTypeBeanSysApproveLevelRateVehicleTypeSysVehicleType01" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysApproveLevelRateVehicleTypeBeanSysApproveLevelRateVehicleTypeApprovedMinVal" value="Approved Min Val:"/>
				<h:panelGroup>
					<h:inputText id="sysApproveLevelRateVehicleTypeBeanSysApproveLevelRateVehicleTypeApprovedMinVal" value="#{sysApproveLevelRateVehicleTypeBean.sysApproveLevelRateVehicleType.approvedMinVal}"/>
					<h:message for="sysApproveLevelRateVehicleTypeBeanSysApproveLevelRateVehicleTypeApprovedMinVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysApproveLevelRateVehicleTypeBeanSysApproveLevelRateVehicleTypeApprovedMaxVal" value="Approved Max Val:"/>
				<h:panelGroup>
					<h:inputText id="sysApproveLevelRateVehicleTypeBeanSysApproveLevelRateVehicleTypeApprovedMaxVal" value="#{sysApproveLevelRateVehicleTypeBean.sysApproveLevelRateVehicleType.approvedMaxVal}"/>
					<h:message for="sysApproveLevelRateVehicleTypeBeanSysApproveLevelRateVehicleTypeApprovedMaxVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysApproveLevelRateVehicleTypeBeanSysApproveLevelRateVehicleTypeSysApproveLevelRateVehicleTypeDccs" value="Sys Approve Level Rate Vehicle Type Dccs:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sysApproveLevelRateVehicleTypeBean.sysApproveLevelRateVehicleType.sysApproveLevelRateVehicleTypeDccs}"/>
					<h:dataTable id="sysApproveLevelRateVehicleTypeBeanSysApproveLevelRateVehicleTypeSysApproveLevelRateVehicleTypeDccs" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Vehicle Gear Type"/>
							</f:facet>
							<h:link outcome="/form/sysApproveLevelRateVehicleTypeDcc/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="forgeviewdisplayitemSysVehicleGearType" value="#{forgeview:display(_item.sysVehicleGearType)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysVehicleGearTypeBean.converter}" id="sysApproveLevelRateVehicleTypeDccBeanAddSysVehicleGearType" value="#{sysApproveLevelRateVehicleTypeDccBean.add.sysVehicleGearType}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysVehicleGearTypeBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="sysApproveLevelRateVehicleTypeDccBeanAddSysVehicleGearType" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Vehicle Life Min Year"/>
							</f:facet>
							<h:link outcome="/form/sysApproveLevelRateVehicleTypeDcc/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemVehicleLifeMinYear" value="#{_item.vehicleLifeMinYear}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sysApproveLevelRateVehicleTypeDccBeanAddVehicleLifeMinYear" value="#{sysApproveLevelRateVehicleTypeDccBean.add.vehicleLifeMinYear}"/>
								<h:message for="sysApproveLevelRateVehicleTypeDccBeanAddVehicleLifeMinYear" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Vehicle Life Max Year"/>
							</f:facet>
							<h:link outcome="/form/sysApproveLevelRateVehicleTypeDcc/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemVehicleLifeMaxYear" value="#{_item.vehicleLifeMaxYear}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sysApproveLevelRateVehicleTypeDccBeanAddVehicleLifeMaxYear" value="#{sysApproveLevelRateVehicleTypeDccBean.add.vehicleLifeMaxYear}"/>
								<h:message for="sysApproveLevelRateVehicleTypeDccBeanAddVehicleLifeMaxYear" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Status Is Allow Dc"/>
							</f:facet>
							<h:link outcome="/form/sysApproveLevelRateVehicleTypeDcc/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemStatusIsAllowDc" value="#{_item.statusIsAllowDc}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sysApproveLevelRateVehicleTypeDccBeanAddStatusIsAllowDc" value="#{sysApproveLevelRateVehicleTypeDccBean.add.statusIsAllowDc}"/>
								<h:message for="sysApproveLevelRateVehicleTypeDccBeanAddStatusIsAllowDc" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Dc Vehicle Life Min Year"/>
							</f:facet>
							<h:link outcome="/form/sysApproveLevelRateVehicleTypeDcc/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemDcVehicleLifeMinYear" value="#{_item.dcVehicleLifeMinYear}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sysApproveLevelRateVehicleTypeDccBeanAddDcVehicleLifeMinYear" value="#{sysApproveLevelRateVehicleTypeDccBean.add.dcVehicleLifeMinYear}"/>
								<h:message for="sysApproveLevelRateVehicleTypeDccBeanAddDcVehicleLifeMinYear" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sysApproveLevelRateVehicleTypeDccBean.added)}" id="sysApproveLevelRateVehicleTypeBeanSysApproveLevelRateVehicleTypeSysApproveLevelRateVehicleTypeDccsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sysApproveLevelRateVehicleTypeDccBean.add.sysApproveLevelRateVehicleType}" value="#{sysApproveLevelRateVehicleTypeBean.sysApproveLevelRateVehicleType}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{sysApproveLevelRateVehicleTypeBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty sysApproveLevelRateVehicleTypeBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{sysApproveLevelRateVehicleTypeBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{sysApproveLevelRateVehicleTypeBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>